package vip.meeet.spring.bean;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class DubboBean {

    @Value("${app.name}")
    private String appName;
    
    @Value("${dubbo.protocol}")
    private String dubboProtocol;
    
    @Value("${dubbo.port}")
    private int dubboPort;

    public String getAppName() {
        return appName;
    }

    public void setAppName(String appName) {
        this.appName = appName;
    }

    public String getDubboProtocol() {
        return dubboProtocol;
    }

    public void setDubboProtocol(String dubboProtocol) {
        this.dubboProtocol = dubboProtocol;
    }

    public int getDubboPort() {
        return dubboPort;
    }

    public void setDubboPort(int dubboPort) {
        this.dubboPort = dubboPort;
    }

    @Override
    public String toString() {
        return "DubboBean [appName=" + appName + ", dubboProtocol=" + dubboProtocol + ", dubboPort=" + dubboPort + "]";
    }
    
}
